﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CardInChina.Bussiness.Frontend.Interface;
using CardInChina.Data.Entity.Entity;

namespace CardInChina.Web.Mvc.Controllers
{
    public class CardDetailController : CICBasicController
    {
        private static CardInfoBusinessService cis = new CardInfoBusinessService();
        //
        // GET: /commodity/
        public ActionResult Index(string cardKey)
        {
            ViewData.Model = cis.GetCardByKeyword(cardKey);
            ViewBag.Games = cis.GetGamesOfCardInfo((CardInfo)ViewData.Model);
            ViewBag.Category = ((CardInfo)ViewData.Model).OfCardClass.CategoryKey;
            return View();
        }

    }
}
